Used in a Sentence

callable

Definitions, parts of speech, synonyms, and sentence examples for callable.

Editorial note

Closures on the other hand bind data to functions; so the function is always callable but the data is bound to this instance of the function.

Examples18
Definitions4
Parts of speech2

Quick take

(programming) An object of a type that can be called, such as a function.

Meaning at a glance

The clearest senses and uses of callable gathered in one view.

noun

(programming) An object of a type that can be called, such as a function.

noun

(finance) A callable bond.

adjective

(programming) That can be called.

Definitions

Core meanings and parts of speech for callable.

noun

(programming) An object of a type that can be called, such as a function.

noun

(finance) A callable bond.

adjective

(programming) That can be called.

adjective

(finance) That may be redeemed by its holder before it matures.

Example sentences

1

Closures on the other hand bind data to functions; so the function is always callable but the data is bound to this instance of the function.

2

In Java, this typically means subclassing Callable or some other class and you end up with lots of anonymous subclasses, which can be quite verbose.

3

For example, std::function is able to wrap any callable type without them having to have any base classes.

4

In a real world program you would validate input and make sure you get something callable (with either technique).

5

C/C++ is the language you write the library in, so that it's callable from every other language.

6

Now what would be really cool is the ability to define a filter function in JS callable from the CSS.

7

That callable will typically be Django's entry point, where Django consults its root urlconf and routes the request to your application code.

8

I tend to use map if my mapping function is already available to me as a callable.

9

Truly cross-platform (not just Windows/Linux/Mac) performance-sensitive libraries that need to be callable (using bindings) from a wide range of programming languages (including C).

10

This has the being callable from other languages, CPython and PyPy.

11

Or having code that's callable from another GC-ed language like Ruby/Python/etc.

12

OS work, drivers, common libs like OpenSSL callable from other apps, infrastructure work, etc.

Quote examples

1

It is a part of the structured programming idea to make modules callable by a "shorthand".

2

This is splitting "callable things" into two worlds, functions and macros, rather than all values.

3

I learnt this "map as callable" idea fron clojure and wondered why it is not more common.

4

I've certainly never heard of it referred to as such in Javascript or Ruby, and most-often referred to as "Callable" in Java.

Proper noun examples

1

It wasn't pretty, but Java <=1.7 could still support a functional programming style by using `Callable` objects.

2

Even then, Java's had ExecutorService, Callable<T> and BlockingQueue<T> for a long time.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use callable in a sentence?

Closures on the other hand bind data to functions; so the function is always callable but the data is bound to this instance of the function.

What does callable mean?

(programming) An object of a type that can be called, such as a function.

What part of speech is callable?

callable is commonly used as noun, adjective.