HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Are there any programming languages that support state machines in their standard library?

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
arelanguagesprogramminganystandardthatstatemachinestheirlibrary

Problem

State machines are a fundamental computer science concept and in many senarios they are the simplest way to implement a process or program. However, most programming languages don't support them natively. Is there a technical limitation to do it? And if not, are there any programming languages that do support state machines in their standard libraries?

Solution

A state machine is basically a loop around a switch case construct, which exists in pretty much almost every language I know in a form or another.

So I'm curious of the one languages you found out that do, according to your wording, implement state machines natively, since to me most of all do so.

Context

StackExchange Computer Science Q#145340, answer score: 2

Revisions (0)

No revisions yet.