pldb icon indicating copy to clipboard operation
pldb copied to clipboard

Add column for whether a language supports conditional expressions, like kotlin

Open breck7 opened this issue 3 years ago • 2 comments

breck7 avatar Jan 06 '23 08:01 breck7

@breck7 I have seen the comment, should it be like pseudocode? Trying to think of a way how to implement it.

Screenshot 2023-01-19 at 19 36 44

rkimera94 avatar Jan 19 '23 16:01 rkimera94

Hi @rkimera94, Kotlin's example is good: https://kotlinlang.org/docs/control-flow.html#if-expression

val max = if (a > b) a else b

The key thing is to emphasize that some languages have if expressions that work like the ternary operator. I'm curious how common this is.

breck7 avatar Jan 31 '23 12:01 breck7

closing for now

breck7 avatar May 18 '24 12:05 breck7