4 ms·
I saw this on Reddit a couple of days ago. Two suggestions: - Change the symbol -> to | because it's more similar to how pipe works in shell than how -> works
by earthboundkid 5y ago
I saw this on Reddit a couple of days ago. Two suggestions:
- Change the symbol -> to | because it's more similar to how pipe works in shell than how -> works in C++/PHP.
- Introduce a second way to do string literals, so :hello is equivalent to "hello". Then change encode so that its second argument is a string instead of a mysterious name. (Read the docs but didn't actually understand how it worked under the hood. Is it just hardcoded?) So `encode json` becomes `encode :json` (or `encode "json"` if the user prefers).
This is a pretty cool project.