trill-lang / trill

A type safe, compiled language inspired by (and written in) Swift
MIT License
275 stars 15 forks source link

Compile string literals as stdlib Strings #33

Closed segiddins closed 7 years ago

segiddins commented 7 years ago
harlanhaskins commented 7 years ago

I'd say definitely -- if we can demote a String to *Int8 automatically it'll help interface with C tremendously.

harlanhaskins commented 7 years ago

This will need updating once we merge #36

segiddins commented 7 years ago

Still uses a string compare, but other than that using the stdlib is now much more robust!

segiddins commented 7 years ago

A super nice side effect to this is that -emit ast no longer includes the stdlib unless you add -show-imports!

harlanhaskins commented 7 years ago

🎉 Why is that?

segiddins commented 7 years ago

Why is that?

Because you no longer explicitly pass in the stdlib files to be compiled

harlanhaskins commented 7 years ago

Oh! Right! 😃

harlanhaskins commented 7 years ago

:shipit:!!!!!!!!!!!!! (once CI passes)

segiddins commented 7 years ago

🚢