Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The second point (how to print an integer) is about something way less easily discoverable than in the previous example. You need to learn about how to print, then about `fmt` and from there the only authoritative place that contains information about format specifiers is the doc comment of `std.fmt.format`.

I don't know if ZSF can guide this or if we can incept it into Andy's head, but if there were any coordinated plan to "solidify certain parts of the stdlib sooner than other parts" the std.fmt.format would be high on my list. And document it. Hell. document it, even if it changes around all the time. I'm often forgetting how that beautiful bastard works and having to jump to the comment in the stdlib is kind of annoying.



Unfortunately I want to destroy it with fire. I am not happy with formatted printing at the moment. But that's something that will ruin a lot of people's day so it will have to be done carefully.

To be less dramatic: I do intend to wildly break formatted printing at some point.

Point taken though. Perhaps it deserves its own seat in the roadmap.


Haha no problem! I both love the formatted printing and hate it, but it's the details of how it works that I hate, it's the power that it has that I love (hence 'beautiful bastard'). I'm sure there is "a better way", so killing it with fire, unless you totally screw it up, gets my support, for whatever that's worth. Anyways, Just whatever it winds up being, it should be well documented, and well documented early.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: