savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
155 stars 12 forks source link

Add `native_to_network` as an alias to `native_to_be` #349

Closed mneumann closed 1 year ago

mneumann commented 1 year ago

While *_to_be and *_to_le are pretty easy to type, it can sometimes be hard to remember what again was Big or Little endian. And in most cases, we want to convert from native to network byte order as certain formats are defined in network byte order.

jemc commented 1 year ago

I suppose this is reasonable. Want to do a PR for it?

mneumann commented 1 year ago

Implemented by PR #352