sodapopcan

sodapopcan

Wondering about the new :let and friends

I know the answer is around the corner but figured I’d ask (and surprised I can’t find it in the forum already).

What’s with the new :let, :for and :if? I read about them many weeks ago in the changelog, but no reason was given as to the change. What I’ve inferred is that they denote “global” attributes, or I guess could be “special” attributes made available by the framework on (any?) component. Is this true? Now that I’m writing it out it feels like it’s probably true (or partially true), but I’m just looking for some confirmation.

Most Liked

JEG2

JEG2

Author of Designing Elixir Systems with OTP

I read this today. Maybe it helps clarify?

cmo

cmo

You just need to watch the GitHub repo(s) to read all the PRs and issues, read all the posts on here, read all the newsletters and blog posts, and monitor Slack and Discord.

sodapopcan

sodapopcan

haha :sweat_smile:

To be be extra clear, (and this isn’t really responding to you, @cmo), I’m not criticizing anyone on the team of people who makes this 100% free software I use all the time and have made a bunch of money off of, it’s just been a thing I’ve noticed for a while now and was thinking on how it could be improved.

Part of my confusion is the LiveView vs Phoenix releases and how heex crosses the boundary and I forget what changelog I’m reading and don’t think to check the updated docs. I do realize that we are in a bit of a limbo state where the new LiveView is out but the new Phoenix isn’t.

Anyway, that’s my little ramble!

Where Next?

Popular in Discussions Top

thojanssens1
It would be nice to be able to define a redirect from one route to another from the router.ex file. E.g.: redirect "/", UserController, ...
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
lorenzo
Hey everone! I created a prototype for my app using Nodejs for the api. But the framework I chose wasnt great (in general theresnt any g...
New
nburkley
AWS re:Invent is on at the moment with some interesting announcements. One new feature in particular is the Lambda Runtime API for AWS La...
New
AstonJ
Are there any Elixir or Erlang libraries that help with this? I’ve been thinking how streaming services like twitch have exploded recentl...
New
ejpcmac
I have discovered Nix last month and I am currently on my way to migrating to it—both on macOS at home and the full NixOS distrubution at...
New
shishini
I think this twitter post and youtube video didn’t get as much attention as I hoped I am still new to Elixir, so can’t really judge ...
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
pdgonzalez872
If this has been asked here before, please point me to where it was asked as I didn’t find it when I searched the forum. Maybe a mailing ...
New
axelson
Decided against including more info in the title, but the gist is that Plataformatec sponsored projects will continue with the assets bei...
New

Other popular topics Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52673 488
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement