Why use string_tree.append()
over string.append()
, if the latter is faster?
#4704
-
Hello Louis and the Gleam Team, Apologies for the rant, besides the question, in advance. I just wanna express my gratitude and say thanks! BackgroundMy name is Abbas and I'm a Software Engineer based in Stockholm, Sweden. I use mainly PHP and Typescript at work but I've been getting an itch for learning a new language lately. Gleam has really caught my attention/interest, firstly due to your passion (I've listened to Hayleigh and Giacomo and their talks are amazing too!) when talking about the language and secondly I tried Gleam a bit in NeoVim and fell in love with the Dev Ex.
I'm quite new to the language (new to FP languages as well) and I'm currently going through the language tour and I'm having a blast! QuestionI was wondering why would you use the LSP mentions something about I'm not sure what Thank you so much for creating this super fun language! I can't wait to start building stuff with it :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! There's documentation on when to use string tree in its module. https://hexdocs.pm/gleam_stdlib/gleam/string_tree.html#StringTree It's always good to benchmark your code when optimising the hot-path as which is better will depend on what your code does. |
Beta Was this translation helpful? Give feedback.
Hello! There's documentation on when to use string tree in its module. https://hexdocs.pm/gleam_stdlib/gleam/string_tree.html#StringTree
It's always good to benchmark your code when optimising the hot-path as which is better will depend on what your code does.