Coder Social home page Coder Social logo

Comments (4)

r0qs avatar r0qs commented on September 27, 2024

Hi @z0r0z, thanks for the question. However, the payable modifier can also be applied to functions with external visibility. So, I don't see a clear advantage in not explicitly stating it in the function declaration.

I think this is what has already changed for constructor()?

Not really, since Solidity version 0.7.0, the function visibility is no longer required for constructors (neither public nor internal). However, note that constructors are not payable by default; you need to explicitly declare them as payable.

from solidity.

z0r0z avatar z0r0z commented on September 27, 2024

thanks for your clarifications and thoughts @r0qs. I think the idea I propose more is that by default anything that is payable be made public as a syntactic sugar. It sort of works with the idea that you can make a constructor payable, and it is public by default. But I appreciate the tension against the fact that external is also optionally payable.

from solidity.

github-actions avatar github-actions commented on September 27, 2024

This issue has been marked as stale due to inactivity for the last 90 days.
It will be automatically closed in 7 days.

from solidity.

github-actions avatar github-actions commented on September 27, 2024

Hi everyone! This issue has been automatically closed due to inactivity.
If you think this issue is still relevant in the latest Solidity version and you have something to contribute, feel free to reopen.
However, unless the issue is a concrete proposal that can be implemented, we recommend starting a language discussion on the forum instead.

from solidity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.