Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/builtin-type-aliases-truthy-falsy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Builtin Truthy & Falsy Type Aliases

## Summary

add built-in type aliases `truthy` and `falsy` and update analysis stringification for these representations

## Motivation

its very inconvenient to type `~(false?)` (truthy) / `false?` (falsy)

currently this requires type functions but im going to larp negation syntax existing for the sake of this rfc

## Design

see [Summary](#Summary).

## Drawbacks

- no drawbacks

## Alternatives

- do nothing. this would make many people very sad, see [2516](https://github.com/luau-lang/luau/issues/2516)