4 ms·
Interesting idea. I mostly agree with limiting the amount of control flow. I generally try to avoid as many ifs as possible. It isn't that alien of an idea in
by olodus 7y ago
Interesting idea. I mostly agree with limiting the amount of control flow. I generally try to avoid as many ifs as possible.
It isn't that alien of an idea in my mind as most people here in the comments seem to argue. I suppose if you used a function with only an "end" clause a function would end up mostly like how one generally writes functions in most functional languages, where a lot of functions are fully comprised of a switch/match on the input.
Maybe because the syntax is very Ruby-like you see a lot of people here expecting more object-oriented design.