GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by sedje (sedje@fosstodon.org)

  1. Embed this notice
    sedje (sedje@fosstodon.org)'s status on Sunday, 30-Mar-2025 22:14:54 JST sedje sedje
    in reply to
    • veer66

    @veer66 Correct. Generally only a function or class will open a new scope/namespace.

    But also take care with exception handler (argument)s and list comprehension and generator expressions.

    In conversation about 2 months ago from fosstodon.org permalink
  2. Embed this notice
    sedje (sedje@fosstodon.org)'s status on Sunday, 30-Mar-2025 21:48:35 JST sedje sedje
    in reply to
    • veer66

    @veer66 ?

    No. It has nothing to do with "naming" the if-block, but with resolving a variable name (the unqualified reference). The if-expression may or may not use variables, but that is irrelevant.

    An if-block does not create a separate scope.

    In conversation about 2 months ago from fosstodon.org permalink

    Attachments


User actions

    sedje

    sedje

    Tech, Nerd, Nuance

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          338195
          Member since
          30 Mar 2025
          Notices
          2
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.