In Elixir, can I do
foo = "" foo = case bar do _ -> "foo is now this value" end i.e assigning whatever the return of a case statement is to a variable in Elixir? If I can is this bad practise?
https://stackoverflow.com/questions/65453358/assign-variable-to-the-return-of-a-case-statement-elixir December 26, 2020 at 11:08AM
没有评论:
发表评论