2 ms·
but then you type nu code in the prompt, not obj-c, right?
by funkyboy 14y ago
but then you type nu code in the prompt, not obj-c, right?
- 286c8cb04bda 14y agoYes, you'll be typing Nu code in a Nu interpreter. Even though it's a Lisp dialect, Nu was designed from the beginning to be interoperable with Objective-C, so translating between them is easy. (Convert brackets to parentheses and you're 80% of the way there.) As a contrived example, this: if(![self.address startsWith:@"https://"]) self.address = [@"https://" stringByAppendingString:self.address] Becomes this: (if (not (@address startsWith:"https://")) (set @address ("https://" stringByAppendingString:@address)))
- funkyboy 14y agothanks for the link. I'll try it out.