Comments (8)
What's wrong with the first item?
Сan be arithmetic expressions places within the attributes? If not, I'll fix the first item as well.
from intellij-erlang.
it's a name/arity for functions and types. Same as -export([x/1]). Arithmetic expressions could not be put there to my knowledge. -attr(2/2) wont compile.
from intellij-erlang.
OK, I see, erlc
reports an error 'bad attribute' for -attr(2/2)
.I'll fix the first one item.
from intellij-erlang.
no spaces in record fields assignment. There should be ones
#x{
id = <<"1">>,
x = y
}
from intellij-erlang.
extra tab of closing curly
-record(x, {
x
}).
from intellij-erlang.
no spaces in record fields assignment. There should be ones
#x{ id = <<"1">>, x = y }
In standart library variant without spaces around =
within record field is more frequent. So, this space is a good candidate for code style preferences. At the moment, I leave variant without spaces.
from intellij-erlang.
But it introduces compilation errors into syntactically correct code. This makes formatter unusable if there are binaries assigned to record fields - after formatting code wont compile - try this example:
-record(x, {
x, id
}).
f() ->
#x{
id = <<"1">>,
x = y
}.
from intellij-erlang.
OK, I got your point.
from intellij-erlang.
Related Issues (20)
- "erl: not found" while trying to setup rebar3 path HOT 2
- Syntax error on `maybe' function in editor HOT 1
- Don't offer some functions from erlang module HOT 1
- red code for some types
- red code
- No docs for OTP modules HOT 2
- Better support for rebar3 HOT 1
- generate documentation with code module HOT 9
- get in trouble: Failed to setup debugger environment HOT 3
- 2023.2 support HOT 1
- Search files lost sdk modules HOT 1
- JpsErlangModelSerializerExtension: JVMCFRE199E bad major version 61.0 HOT 2
- I use erlang remote, but I get an error, what should I do?
- Debugging failed with: Failed to setup debugger environment using Intelij 2023.2.5, OSX 13.5.2 (22G91) HOT 6
- Add support for IntelliJ 2023.3 HOT 11
- intellij-erlang-0.11.1205 don't support intelliJ IDEA IC-233.13135.103 HOT 1
- Beam file in MacOs is not created HOT 2
- new function improve
- Add support for IntelliJ 2024.1
- Can not add SDK on Intellij 2024.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-erlang.