A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/JohnnyMorganz/StyLua/issues/963 below:

Unnecessary extra semicolons introduced for functions · Issue #963 · JohnnyMorganz/StyLua · GitHub

local value = nil

(Foo :: any):Call()

local tbl = {}

(Foo :: any):Call()

... will add semicolons unnecessarily, leading to ...

local value = nil;

(Foo :: any):Call()

local tbl = {};

(Foo :: any):Call()

We don't need to add semicolons here, as they are not ambiguous statements. We would only need a semicolon if nil and {} were instead an identifier.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4