Skip to content
#

typechecking

Here are 52 public repositories matching this topic...

customcommander
customcommander commented Feb 7, 2021

With Closure Compiler v20210106 and the following flags:

--language_in=ECMASCRIPT_NEXT
--compilation_level ADVANCED
--js tmp/wrap.js 

This works fine:

/**
 * @param {string} str
 * @param {string} [prefix=aa]
 * @param {string} [suffix=bb]
 */
function wrap1(str, prefix="aa", suffix="bb") {
  return prefix + str + suffix;
}

window.wrap1 = wrap
help wanted good first issue P4
SebastianMestre
SebastianMestre commented Apr 27, 2021

It would be pretty cool to be able to write something like

ErrorReport err = match_identifiers(...);
if (!err.ok()) {
   Log::fatal() << err;
}

or like

auto err = make_located_error("undefined variable", location, ErrorLevel::Fatal);
err.print();

and have it print [ Fatal Error ] At xx:xx -- undefined variable, followed by termination of the program.

good first issue area - helpers

A python 3 library providing functions and decorators to automatically generate class code, such as constructor body or properties getters/setters along with optional support of validation contracts on the generated setters. Its objective is to reduce the amount of copy/paste code in your classes - and hence to help reducing human mistakes :).

  • Updated Apr 19, 2021
  • Python

Improve this page

Add a description, image, and links to the typechecking 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 typechecking topic, visit your repo's landing page and select "manage topics."

Learn more