2 ms·
The creation of /, iirc, was initially meant strictly as a way of internally enforcing constraints when interfacing with C libraries. It just so happened that s
by toyg 5y ago
The creation of /, iirc, was initially meant strictly as a way of internally enforcing constraints when interfacing with C libraries. It just so happened that someone dug it out and went "what is this?" and then core devs agreed that it should be surfaced and officially supported.
Personally, I find * useful and / fugly - because positional parameters are very opaque when reading code. They also don't give a chance to the IDE to guess what each parameter is meant for.
- rlayton2 5y agoI'm not a big fan of them either. For teaching beginners, its often "look at the help for this function, but ignore these bits for now", which is quite jarring. They are useful, but I think sometimes the advanced features run into the basic interfaces a bit, making it weirdly tricky to teach beginners without being confused.
- Siira 5y agoIgnoring them is pretty easy. The beginners should learn the art of selective attention anyway.