arcanemachine

arcanemachine

https://nitter.net/josevalim/status/1744395345872683471

https://twitter.com/josevalim/status/1744395345872683471

Showing Posts 1 to 10

ken-kost

ken-kost

Seems like an update that things are moving along well. Exciting! :cowboy_hat_face:

DaAnalyst

DaAnalyst

@josevalim please don’t tell me that what @wojtekmach is saying in the reply to a comment (here: https://nitter.net/wojtekmach/status/1744417556037816321#m) is the actual plan.

If it’s truly the plan to make function headers as unreadable as in C++ or as verbose as in Java I can’t overstate just how bad that’s going to be.

For God sake, PLEASE (with a cherry and sugar on top) keep the typing separate from the function header.

TIA

PS. When in doubt just consider this:

  • Elxiir benefits plenty from its readability-minimalism (you should know - you created it)
  • Any benefit from its typing is questionable and sacrificing the former at the altar of the latter would be such a shame
ONeill

ONeill

This is binary pattern matching syntax. And already exists in elixir if you match out a certain number of bytes in a pattern.

The syntax for functions will be like

$ integer() → integer()
def func(num) when is_integer(num) do

Afiak

DaAnalyst

DaAnalyst

I understand it’s a binary pattern matching syntax, but please read the Jose’s colleague reply that I linked above.

This line is what I’m referring to:
“It’s a few steps until explicit type syntax appears still though.”

What I am afraid of this means is:
“It’s a few steps until we make it look like C++.”

sodapopcan

sodapopcan

Wojtek says “no” to that syntax in that reply. I’m not José but nothing he has said suggested we’re going to get that, that would be kind of insane coupled with pattern matching (and I’m with you, I hate it). We should be getting something like what @ONeill just posted.

ONeill

ONeill

Yeah, he says that f(myset :: MapSet.t) is not what they are thinking but the final syntax isn’t finalised.

However from streams and talks that have been given on this topic they seem to be in favour of the $ syntax, though obviously things can change as community feedback rolls in

DaAnalyst

DaAnalyst

I editing my comment to add context.

I hope I got that line of @wojtekmach wrong.

hubertlepicki

hubertlepicki

Yep, at first glance I was also like WTF is that but then realized it’s pattern matching in a binary. Probably not the best example choice by Jose, looks like :poop: if you don’t know what it does.

ONeill

ONeill

Yeah I did a double take at first :grinning_face: I guess it’s just the first part to be implemented, they are doing it gradually

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews