Strings — stopped halfway

What could be easier than strings? Raw ones:

str := 'I say ''hello world'' now.';

when every character is taken as-is with exception of string delimiter — you have to put two apostrophes to get one.

And interpolated ones:

hello_world := 'hello world';
str := "I say '{hello_world}' now.";

But then I realized — the embedded expressions have to be of “IToString” trait, and I don’t have interfaces or extension methods yet!

Oh boy, I have so many ideas for Skila that it is hard to keep a proper order what requires what. Luckily I won’t wait too long, because interfaces are near the top of my TODO list.

Advertisement
Tagged

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: