4 ms·
> I'm going to find him something simpler to work on. Sure, but why should this non-feature which makes code harder to read and reason about even be built in t
by rhysmorgan 7y ago
> I'm going to find him something simpler to work on.
Sure, but why should this non-feature which makes code harder to read and reason about even be built in the first place? All to save `.parse` at the call site of a parser, for example?
- edflsafoiewq 7y agoThis syntax already exists in the language. If you want users to be able to use the obj() syntax you can already give them a closure for obj. Allowing it for user-defined types too removes an artificial syntactic distinction.