Skip to content
#

language

Here are 5,422 public repositories matching this topic...

sandersn
sandersn commented Jun 29, 2022

As explained in microsoft/TypeScript#2548, the following code is not correct when useDefineForClassFields: false, which is the default for targets before ES2021.

const x = 1
class C {
    p = x
    constructor(x: string) { }
}

However, when useDefineForClassFields: true, there shouldn't be an error here.

Expected: No error 2301 on `private p =

Bug Good First Issue
ZumZoom
ZumZoom commented Jun 24, 2022

When doing division and modulo operation with constant or immutable denominator it is possible to only do compile-time denominator check and skip runtime checks.

Consider following contracts:

pragma solidity 0.8.15;

uint256 constant _MODULE = 17;

contract C1 {
    function f(uint256 a) external pure returns(uint256) {
        return a % _MODULE;
    }
}

contract C2 
legu2009
legu2009 commented Nov 26, 2020

I'm Writing a ThemeColor Plugin, use Visitor.

In fn:visitColor , node.parent sometimes is null (box-shadow:0 0 0 1px #999 inset). I can't find the parent Declaration Node of Color Node.
so I want to [less.js/lib/less/visitors/visitor.js Visitor.prototype.visit](https://github.com/less/less.js/blob/0e268598c8327b9e8d36d9bb2edfde95d8d787be/packages/less/src/less/visitors/visitor.js

Nim
quantimnot
quantimnot commented Jun 25, 2022

I can't find any documentation or thorough tests of the path substitution performed by compiler/options/pathSubs.

From looking at the code, these are the substitutions:

  • $nim: global nim prefix directory path
  • $lib: stdlib directory path
  • $home: user's home directory path
  • $config: I think this is the directory path to the either the nimscript calling
    `compiler/options/path
Snowapril
Snowapril commented Apr 14, 2022

Feature

Many existing test cases check that pickle.dumps and pickle.loads of a given type return the exact same value. Almost failed pickle test in RustPython, lack __reduce__ method.

  • arrayiterator.__reduce__ (test_array::test_iterator_pickle)
  • filter.__reduce__ (test_builtin::test_filter_pickle) — #3732
  • map.__reduce__ (test_builtin::test_map_pickle) — #3734
tech-interview-for-developer

Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!

  • Updated Jun 27, 2022
  • Red
melvyn2
melvyn2 commented May 30, 2022

Having a callback for when the selected element is changed would be useful, for similar reasons to TextEdit/LineEdit: validation, updating buffers, or the rest. I imagine that it would be something like selected(int) with int being the index, though LineEdit emits a simple callback without arguments so there may be a tradeoff I'm missing (an int should be easier to pass around on the oth

good first issue

Improve this page

Add a description, image, and links to the language topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the language topic, visit your repo's landing page and select "manage topics."

Learn more