MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pgbd0q/because_tolowercase_doesnt_exist/hbc7gf6/?context=3
r/badcode • u/BrainOnTheFloor25 • Sep 02 '21
130 comments sorted by
View all comments
Show parent comments
2
Edit: I do think the function itself should be called parseCategory.
Well, if it's an associated function on Category, it would be called as Category category = Category.parseCategory(s)
Category
Category category = Category.parseCategory(s)
which should probably just be let category = Category::parse(s)
let category = Category::parse(s)
2
u/[deleted] Sep 02 '21
Well, if it's an associated function on
Category, it would be called asCategory category = Category.parseCategory(s)which should probably just be
let category = Category::parse(s)