Replies: 1 comment 2 replies
-
This repository is for Remix the web framework, not Remix IDE. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I feel lack of "solidity as language" abilities to write things I usually code in others languages: at this moment this are data structures, dynamic arrays, generics.
Data structures.
In solidity I know about arrays, structs and mapping. It was enough for toying with ethereum abilities, but became very limiting when I started write ethereum extension for my project. Many users experience similar issues and already started to write own data structures based on contract (ref). At the same time it brings concerns about quality and security of such tools which is top-priority for finance purposed project which are majority in ethereum tech stack. Could the dev team aggregate demands&existing solutions in this aspect and start lead the development?
Dynamic arrays.
Dynamic arrays seems possible to define like this
but remix compiler warns for the case of passing it into another function:
TypeError: This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
References from many places including docs somewhat misleading that create a picture solidity arrays are dynamic when they are not,
I had not found any references on templates or generics in the official documentation, but for example here I see it is possible to have generics in solidiity. At another hand remix linter&compiler this code samples marks with error. Does remix linter isn't correct here or this code samples doesn't relevant to current version of solidiity?
Beta Was this translation helpful? Give feedback.
All reactions