# \#keywords

**URL:** https://discourse.julialang.org/tag/keywords/833.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Missing documentation for \`this\` (actually not)](https://discourse.julialang.org/t/missing-documentation-for-this-actually-not/137185)

<div class="topic-metadata">

**Author:** [@lilachint](https://discourse.julialang.org/u/lilachint)\
**Replies:** 5\
**Last updated:** [May 19, 2026, 12:19pm UTC](https://discourse.julialang.org/t/missing-documentation-for-this-actually-not/137185 "2026-05-19T12:19:53Z")

</div>

I came across Base.jl include, and saw this. Since Julia is not OOP, I had never seen this before. The keyword is not even documented, searching gives 0 results. I tested it myself in REPL and this seems to be a referenc…

---

## [\`in\` as variable name leads to calling of variable](https://discourse.julialang.org/t/in-as-variable-name-leads-to-calling-of-variable/133733)

<div class="topic-metadata">

**Author:** [@ncxst](https://discourse.julialang.org/u/ncxst)\
**Replies:** 1\
**Last updated:** [November 7, 2025, 1:09pm UTC](https://discourse.julialang.org/t/in-as-variable-name-leads-to-calling-of-variable/133733 "2025-11-07T13:09:10Z")

</div>

I stumbled across code that uses in as a variable name, which confused me, so I tried to see when using keywords as variables breaks. First a few examples where everything is fine: julia\> f(in, out) = in + out f (generi…

---

## [Using the end keyword as a function argument](https://discourse.julialang.org/t/using-the-end-keyword-as-a-function-argument/96615)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 2:13am UTC](https://discourse.julialang.org/t/using-the-end-keyword-as-a-function-argument/96615 "2023-03-26T02:13:22Z")

</div>

Hi, Is there any way to pass the end keyword as an argument in a function or another index (i.e., -1 in python) to point to the last position of an array? a = \[1 2 3 4 5\] function f1(a, n) return a\[n\] end f1(a, e…

---

## [What is a good way to write methods that help the user not mix up input order?](https://discourse.julialang.org/t/what-is-a-good-way-to-write-methods-that-help-the-user-not-mix-up-input-order/94803)

<div class="topic-metadata">

**Author:** [@philip](https://discourse.julialang.org/u/philip)\
**Replies:** 7\
**Last updated:** [February 23, 2023, 4:04am UTC](https://discourse.julialang.org/t/what-is-a-good-way-to-write-methods-that-help-the-user-not-mix-up-input-order/94803 "2023-02-23T04:04:47Z")

</div>

I’ve often encountered issues similar to Keyword argument types - what's going on? - #11 by sijo . I like to write methods with keyword arguments because I find them harder to silently screw up calling than positional ar…

---

## [Concise call keyword arg with default by conditional](https://discourse.julialang.org/t/concise-call-keyword-arg-with-default-by-conditional/90716)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 5:04pm UTC](https://discourse.julialang.org/t/concise-call-keyword-arg-with-default-by-conditional/90716 "2022-11-23T17:04:05Z")

</div>

I tried to show an example below. This might be a bit persnickety, but it seems like it would be nice to have a cleaner solution for this situation. I have function A with a keyword argument that specifies a default val…

---

## [Specializing on keyword arguments](https://discourse.julialang.org/t/specializing-on-keyword-arguments/78263)

<div class="topic-metadata">

**Author:** [@etienne\_dg](https://discourse.julialang.org/u/etienne_dg)\
**Replies:** 7\
**Last updated:** [March 22, 2022, 2:44pm UTC](https://discourse.julialang.org/t/specializing-on-keyword-arguments/78263 "2022-03-22T14:44:37Z")

</div>

I have a function f(a; b=default\_b, c=default\_c), and want to implement a method f(a) = f(a, b=default\_b, c=c\_specialized\_for\_default\_b), which should override f when neither b and c are provided. If I implement it lik…

---

## [Dispatching functions and keyword usage](https://discourse.julialang.org/t/dispatching-functions-and-keyword-usage/69825)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 1:37pm UTC](https://discourse.julialang.org/t/dispatching-functions-and-keyword-usage/69825 "2021-10-15T13:37:28Z")

</div>

Hi there, Is there a way to dispatch on a function and still being able to call eventual keywords? I tried to dispatch a function, but could not call non-default keywords anymore afterwards. MWE: function testfn(a::In…
