Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

switchの後はインデントが必要 #2

Open
youz opened this Issue · 0 comments

1 participant

@youz
Owner

switch文はwhen句で1段インデントが必要だが

    switch v
    I

vの後ろでリターンするとIの位置にインデントされてしまう。

cf. Cocoのswitch文はインデントがあってもなくても良い。

$ coco -bcpi
coco -cb> switch v
......... case 2
.........   "ok"
......... default
.........   "boo"
switch (v) {
case 2:
  "ok";
  break;
default:
  "boo";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.