[Tutorial] Ternary operation
#7

Quote:
Originally Posted by Vince
View Post
With all due respect, but that's rubbish. You're actually typing more than what actually get replaced, completely defeating the purpose of a macro. The ternary operator is universal and anyone's who's familiar with will instantly recognize it.
I agree with it being rubbish of a macro but I kinda have a bunch of ternary in ternaries (kinda like a little switch, but can't use switch because of it can only compare a value to a constant) And it looks fucked up just because of the string problem I mentioned, Absolutely if it could be used like sth>sth1 ? "Yes" : sth==sth2 ? "No" : "Maybe"
sure I wouldn't need that but with a shitload of brackets needed to make that work for this compiler thats a no-go, let alone a 4th option (Just for example, I don't really use that many at least for strings but I still use double ternary occasionally.)

But I guess it's just a preference tho, I can follow everything but braces(? brackets? we call them parentheses) so ternary operators with brackets are actually a nightmare for me.
Reply


Messages In This Thread
Ternary operation - by Untonyst - 13.07.2016, 22:14
Re: Ternary operation - by OstGot - 13.07.2016, 22:30
Re: Ternary operation - by PrO.GameR - 14.07.2016, 19:47
Re: Ternary operation - by Pottus - 14.07.2016, 20:00
Re: Ternary operation - by Vince - 14.07.2016, 20:42
Re: Ternary operation - by Untonyst - 14.07.2016, 23:00
Re: Ternary operation - by PrO.GameR - 14.07.2016, 23:25
Re: Ternary operation - by Dayrion - 15.07.2016, 01:33
Re: Ternary operation - by Diman777 - 11.08.2016, 20:53
Re: Ternary operation - by Untonyst - 11.08.2016, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)