Stream: beginners

Topic: ✔ how to do U8 now?


view this post on Zulip Artur Swiderski (Jan 10 2024 at 20:00):

it used to be possible to do h = 'a' how to do this now ?

view this post on Zulip Brendan Hansknecht (Jan 10 2024 at 20:03):

That should still work

view this post on Zulip Brendan Hansknecht (Jan 10 2024 at 20:05):

That said it isn't guaranteed to fit in a u8

» x = 'a'

97 : Int *
» b = '🎅'

127877 : Int *

view this post on Zulip Artur Swiderski (Jan 10 2024 at 20:20):

ok it was just '$' is '\$' now

view this post on Zulip Brendan Hansknecht (Jan 10 2024 at 20:22):

ah. Yeah makes sense given the new interpolation syntax will be "$(someExpr)". Though I guess that really shouldn't be need for single characters.

view this post on Zulip Brendan Hansknecht (Jan 10 2024 at 20:22):

@Richard Feldman would you consider this a bug or should we just always require \$? I thought the plan was that we almost never need \$ cause seeing $1.25 is clearly not interpolation.

view this post on Zulip Richard Feldman (Jan 10 2024 at 20:30):

oh yeah that's a bug

view this post on Zulip Richard Feldman (Jan 10 2024 at 20:30):

$ should still work the same as before

view this post on Zulip David Dunn (Jan 16 2024 at 14:47):

Opened #6390 as I couldn't find an existing issue for this

view this post on Zulip Richard Feldman (Jan 16 2024 at 14:59):

fixed in this PR!

view this post on Zulip Notification Bot (Jan 16 2024 at 14:59):

Richard Feldman has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC